Searched hist:"3 d46a75a" (Results 1 – 1 of 1) sorted by path
/qemu/block/ |
H A D | vdi.c | 3d46a75a Mon Mar 19 17:07:45 GMT 2012 Paolo Bonzini <pbonzini@redhat.com> vdi: basic conversion to coroutines
Even a basic conversion changing the bdrv_aio_readv/bdrv_aio_writev calls to bdrv_co_readv/bdrv_co_writev, and callbacks to goto statements can eliminate a lot of code. This is because error handling is simplified and indirections through bottom halves can go away.
After this patch, I/O to the underlying file already happens via coroutines, but the code still looks a lot like if asynchronous I/O was being used.
Acked-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|